import request from '@/utils/request'

// 查询地区分类列表
export function listDistrictclass(query) {
  return request({
    url: '/basic/districtclass/districtclass/list',
    method: 'get',
    params: query
  })
}

// 查询地区分类详细
export function getDistrictclass(jcDistrictclassoid) {
  return request({
    url: '/basic/districtclass/districtclass/' + jcDistrictclassoid,
    method: 'get'
  })
}

// 新增地区分类
export function addDistrictclass(data) {
  return request({
    url: '/basic/districtclass/districtclass',
    method: 'post',
    data: data
  })
}

// 修改地区分类
export function updateDistrictclass(data) {
  return request({
    url: '/basic/districtclass/districtclass',
    method: 'put',
    data: data
  })
}

// 删除地区分类
export function delDistrictclass(jcDistrictclassoid) {
  return request({
    url: '/basic/districtclass/districtclass/' + jcDistrictclassoid,
    method: 'delete'
  })
}
